package com.android.entities;

import java.util.ArrayList;
import java.util.List;

public class Group {

	private String name;
	private List<AgendaEntry> children;
	
	public Group() {
		children = new ArrayList<AgendaEntry>();
	}
	
	public Group(String name) {
		this.name = name;
		children = new ArrayList<AgendaEntry>();
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public List<AgendaEntry> getChildren() {
		return children;
	}

	public void setChildren(List<AgendaEntry> children) {
		this.children = children;
	}
	
	public void addChild(AgendaEntry child) {
		this.children.add(child);
	}

	public AgendaEntry getChild(int position) {
		return this.children.get(position);
	}

}
